<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich" xmlns:bf="http://www.bssmanager.com/jsf" xmlns:c="http://java.sun.com/jstl/core">

	<table width="100%" align="right" style="text-align: right; table-layout: fixed">
		<tr style="background-color: #FFBF80">
			<td colspan="2" valign="top">
				<h:panelGrid columns="3">
					<h:outputLabel value="Date: " />
					<rich:calendar enableManualInput="false" value="#{controller[date]}" inputSize="12"
						datePattern="dd MMM yy HH:mm">
						<c:if test="#{ajaxUpdate}">
							<a4j:support event="onchanged" reRender="#{reRender}"
								action="#{controller[action]}" status="drdate"
								oncomplete="if(#{not empty controller.errors})alert('#{controller.errors[0]}');" />
						</c:if>
					</rich:calendar>
					<c:if test="#{ajaxUpdate}">
						<a4j:status forceId="true" id="drdate">
							<f:facet name="start">
								<h:graphicImage value="/images/im1.gif" />
							</f:facet>
						</a4j:status>
					</c:if>
				</h:panelGrid>
			</td>
		</tr>
	</table>
</ui:composition>